#ifndef FRMATHANG_H
#define FRMATHANG_H

#include <QDialog>
#include "ui_frmathang.h"
#include "ketnoidb.h"
#include "qsqlquery.h"
#include "qsqlquerymodel.h"

namespace Ui {
    class frMatHang;
}

class frMatHang : public QDialog
{
    Q_OBJECT

public:
    explicit frMatHang(QWidget *parent = 0);
    ~frMatHang();
    ketnoiDB thaotac;
    QSqlQuery query;
private slots:
    void themMH();
    void suaMH();
    void XoaMH();
    void select(QItemSelection);
    void loadMatHang();



    void on_btnThoat_clicked();

private:
    Ui::frMatHang *ui;
    QString kiemtra(QString makt);

};

#endif // FRMATHANG_H
